import { Request, Response, NextFunction } from "express";

export default async (_request: Request, response: Response, next: NextFunction) => {
	try {
		response.statusCode = 200;
		response.json({ userInfo: response.locals.user });
	} catch (error) {
		response.statusCode = 400;
		next(error);
	}
};
